//
// Created by 吴锐 on 2022/2/25.
//

#include "iostream"

using namespace std;

class Phone {
public:
    string m_PName;

    Phone(string name){
        m_PName = name;
    }
};

class Person {
public:
    string m_Name;
    Phone m_Phone;

    Person(string name, string PName) : m_Name(name) , m_Phone(PName) {

    }
};

void test01(){
    Person p("张三", "苹果");
    cout << p.m_Name << "拿着: " << p.m_Phone.m_PName << "手机" << endl;
}

int main(){
    test01();
    return 0;
}